<ion-header>
  <ion-navbar no-border-bottom>
    <ion-buttons start>
      <button ion-button (click)="cancel()">取消</button>
    </ion-buttons>
    <ion-title>
      渠道列表
    </ion-title>
    <ion-buttons end>
      <button ion-button (click)="search()">查询</button>
    </ion-buttons>
  </ion-navbar>
  <ion-list>
    <ion-item>
      <ion-label>
        渠道名称：
      </ion-label>
      <ion-input placeholder="请输入渠道名称关键字" [(ngModel)]="keyWord"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>渠道类型</ion-label>
      <ion-select cancelText="取消" okText="确定" [(ngModel)]="condition.iszb">
        <ion-option value="全部">全部</ion-option>
        <ion-option value="总部">总部</ion-option>
        <ion-option value="非总部">非总部</ion-option>
      </ion-select>
    </ion-item>
    <ion-item>
      <ion-label>
        省份：
      </ion-label>
      <ion-input placeholder="请输入省份名称" [(ngModel)]="condition.provincename" clearInput="true"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>
        城市：
      </ion-label>
      <ion-input placeholder="请输入城市名称" [(ngModel)]="condition.cityname"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>
        网点：
      </ion-label>
      <ion-input placeholder="请输入网点信息" [(ngModel)]="condition.netname"></ion-input>
    </ion-item>
    <ion-row>
      <!--<ion-item-divider *ngIf="listData.length > 0" color="light">查询结果</ion-item-divider>-->
      <span class="custom-divider" *ngIf="listData.length > 0">查询结果</span>
    </ion-row>
  </ion-list>
</ion-header>
<ion-content>
  <br>
  <br>
  <ion-refresher (ionRefresh)="doRefresh($event)">
    <ion-refresher-content pullingText="下拉刷新" refreshingText="加载中...">
    </ion-refresher-content>
  </ion-refresher>
  <ion-list radio-group>
    <ion-item *ngFor="let item of listData">
      <ion-label>{{item[1]}}{{item[2]}}{{item[3]}}{{item[4]}}</ion-label>
      <ion-radio value="{{item[0]}}" (ionSelect)="typeRadioSelected(item)"></ion-radio>
    </ion-item>
  </ion-list>
  <ion-item-divider class='list-no-more-tips' color="light" [hidden]="isLoadMore">暂无更多数据...</ion-item-divider>
  <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
    <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载更多数据...">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
